<?php if (!defined('__TYPECHO_ROOT_DIR__')) exit; ?>
<?php $this->need('header.php'); ?>
<!-- 内容 -->
<div class="laobuluo-panel">
     <div class="laobuluo-col-head">
          
          <h1 class="laobuluo-post-title"><a href="<?php $this->permalink() ?>"><?php $this->title() ?></a></h1>
          <ul class="laobuluo-post-meta">
               <li><i class="layui-icon layui-icon-note"></i><?php $this->category(','); ?></li>
               <li><i class="layui-icon layui-icon-dialogue"></i><?php $this->commentsNum('评论', '1 条评论', '%d 条评论'); ?></li>
               <li><i class="layui-icon layui-icon-read"></i><?php get_post_view($this) ?> 次阅读</li>
               <li><i class="layui-icon layui-icon-date"></i><?php $this->date(); ?></li>
          </ul>
          <div class="laobuluo-detali-cont">
               <?php $this->content(); ?>
          </div>
          <!-- 标签 -->
          <div class="laobuluo-post-label mt15">
               <dl>
                    <dt>标签：</dt>
                    <dd><?php $this->tags(',', true, 'none'); ?></dd>
          </div>
          <!-- 标签 -->
          <!-- 翻页 -->
          <div class="del-pag mt30">
               <div class="layui-row">
                    <div class="layui-col-md4">
                         <div class="del-pag-lf">
                              <span class="del-pag-link">上一篇:</span>
                              <p class="del-pag-title mt10"><?php $this->thePrev('%s', '没有了'); ?></p>
                         </div>
                    </div>
                    <div class="layui-col-md4 layui-col-md-offset4">
                         <div class="del-pag-lr">  
                              <span class="del-pag-link">下一篇:</span>
                              <p class="del-pag-title mt10"><?php $this->theNext('%s', '没有了'); ?></p>
                         </div>
                    </div>
               </div>
          </div>
          <!-- 翻页 -->
     </div>
</div>
<?php $this->related(5)->to($relatedPosts); ?>
<?php if ($relatedPosts->have()) : ?>
     <div class="laobuluo-panel">
          <div class="laobuluo-col-head">
          <h5 class="widget-title"><?php _e('相关文章'); ?></h5>
               <ul class="widget-navcontent">
                    <li class="item item-01 active">
                         <ul>
                              <?php while ($relatedPosts->next()) : ?>
                                   <li><time><?php $relatedPosts->date('Y-m-d'); ?></time><a href="<?php $relatedPosts->permalink(); ?>" title="<?php $relatedPosts->title(); ?>"><?php $relatedPosts->title(); ?></a></li>
                              <?php endwhile; ?>
                         </ul>
                    </li>
               </ul>
          </div>
     </div>
<?php endif; ?>
<div class="laobuluo-panel">
          <div class="laobuluo-col-head">
<?php $this->need('comments.php'); ?>
</div>
     </div>
<!-- 内容 -->
<?php $this->need('footer.php'); ?>